* {
  margin: 0;
  padding: 0;
}

body {
  background-color: rgb(8, 8, 8);
  color: rgb(92, 91, 91);
  font-size: 18px;
}

.clock {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1000px;
  height: 1000px;
  transform: translate(-50%, -50%);
}

.temp {
  position: absolute;
  top: 0;
  width: 1000px;
  height: 1000px;
  transition: all .5s;
}

/* 把所有的span定位到一起 */
.temp span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 40px;
  height: 20px;
  margin-top: -10px;
  margin-left: -20px;
}

span {
  display: block;
}

/* 现在的时间变色 */
.now {
  color: white;
  text-shadow: 0 0 10px white;
}

/* 让年份居中显示 */
.year span {
  font-size: 24px;
  width: 90px;
  margin-left: -35px;
  margin-top: -15px;
}